<!--
 * @Author: weisheng
 * @Date: 2024-11-01 11:44:38
 * @LastEditTime: 2025-01-13 16:52:01
 * @LastEditors: 810505339
 * @Description:
 * @FilePath: \wot-demo\src\pages\index.vue
 * 记得注释
-->
<script setup lang="ts">
import { useRouter } from '@/plugin/uni-mini-router'

const router = useRouter()

const handleLogin = async () => {
  router.push({
    path: '/pages/login'
  })
}
</script>

<template>
  <view>
    <wd-cell title="当前暗黑模式">
    </wd-cell>
    <wd-cell title="当前主题色">
      <view class="inline-block h-4 w-4 rounded"/>
    </wd-cell>
    <wd-button @click="handleLogin">wxLogin按钮</wd-button>
  </view>
</template>

<style></style>

<route type="home" lang="json">
{
  "layout": "tabbar",
  "name": "首页",
  "style": {
    "navigationBarTitleText": "首页"
  }
}
</route>
